﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace CommunitySystem.Web.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“CanGongService”。
    public class CanGongService : ICanGongService
    {
        private CanGongBO bo = new CanGongBO();
        public System.Collections.ObjectModel.ObservableCollection<CommunitySystemModel.CanGongModel> GetCanGongModel(int id, string orgids)
        {
            return bo.GetCanGongModel(id,orgids);
        }

        public void InsertCanGong(CommunitySystemModel.CanGongModel model)
        {
            bo.InsertCanGong(model);
        }

        public void UpdateCanGong(CommunitySystemModel.CanGongModel model)
        {
            bo.UpdateCanGong(model);
        }

        public System.Collections.ObjectModel.ObservableCollection<CommunitySystemModel.CanGongDetail> GetCanGongDetailModel(int orgid, int cangongid, int id)
        {
            return bo.GetCanGongDetailModel(orgid, cangongid, id);
        }

        public void InsertCheGaiDetail(CommunitySystemModel.CanGongDetail model)
        {
            bo.InsertCheGaiDetail(model);
        }

        public void UpdateCheGaiDetail(CommunitySystemModel.CanGongDetail model)
        {
            bo.UpdateCheGaiDetail(model);
        }

        public void UpdateCheGaiDetailStatus(string ids, string type)
        {
            bo.UpdateCheGaiDetailStatus(ids, type);
        }

        public void UpdateCheGaiStatus(int id, string type, DateTime? dt, string orgname)
        {
            bo.UpdateCheGaiStatus(id, type, dt, orgname);
        }


        public void DeleteCanGongDetail(string id)
        {
            bo.DeleteCanGongDetail(id);
        }

        public void DeleteCanGong(int id, int orgid)
        {
            bo.DeleteCanGong(id, orgid);
        }


        public System.Collections.ObjectModel.ObservableCollection<CommunitySystemModel.CanGongDetail> GetCanGongDetailModel1(int cangongid, int status)
        {
            return bo.GetCanGongDetailModel1(cangongid, status);
        }
    }
}
